package com.shrcl.engineerprocess.domain.impl;

import com.shrcl.engineerprocess.domain.CertificationNotification;
import com.shrcl.engineerprocess.domain.CertificationNotificationDAO;
import com.shrcl.engineerprocess.domain.impl.CertificationNotificationImpl;
import edu.fudan.mylang.pf.BaseDAOService;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.springframework.stereotype.Service;

@Service("com.shrcl.engineerprocess.domain.CertificationNotificationDAO")
public class CertificationNotificationDAOImpl extends BaseDAOService<CertificationNotification> implements CertificationNotificationDAO {
  public CertificationNotification create(final Procedure1<? super CertificationNotification> init) {CertificationNotification certificationNotification=CertificationNotificationImpl.create(getObjectFactory());
    final Procedure1<CertificationNotification> _function = new Procedure1<CertificationNotification>() {
        public void apply(final CertificationNotification it) {
          init.apply(it);
          it.start();
        }
      };
    CertificationNotification _doubleArrow = ObjectExtensions.<CertificationNotification>operator_doubleArrow(certificationNotification, _function);
    return _doubleArrow;
  }
}
